/*******************************************************************************
GNetwork.cpp

	Author:		LiuDingXi
	e-mail:		liudx@gmail.com
	Date time:	2009-08-26

	Copyright (C) 2009
	All rights reserved.
	
*******************************************************************************/
#include "StdAfx.h"
#include "GNetwork.h"

#if (_OS_ == _OS_WINNT_)
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
#endif//(_OS_ == _OS_WINNT_)

////////////////////////////////////////////////////////////////////////////////

GNetwork::GNetwork()
{
	m_pfNotify = NULL;
	m_lpObject = NULL;

	m_pSendData = NULL;
	m_nSendSize = 0;

	m_pRecvData = NULL;
	m_nRecvSize = 0;
}

GNetwork::~GNetwork()
{
	Uninitialize();
}

BOOL GNetwork::Initialize(LPCTSTR szInit, NetNotify pfNotify, LPVOID lpObject)
{
	m_pfNotify = pfNotify;
	m_lpObject = lpObject;
	return TRUE;
}

BOOL GNetwork::Uninitialize()
{
	m_pfNotify = NULL;
	m_lpObject = NULL;

	return TRUE;
}

BOOL GNetwork::Connect(LPCTSTR szServer, int nPort)
{
	return FALSE;
}

BOOL GNetwork::Disconnect()
{
	return FALSE;
}
